
// export default class DialogUtil {

import CommonDialog from "./CommonDialog"




// }


export function createDialog(params:hy.DialogParams) {
    cc.resources.load("dialog/commom/CommomDialog",cc.Prefab,(err,res:cc.Prefab)=> {
        let node = cc.instantiate(res)
        let script:CommonDialog = node.getComponent("CommonDialog")
        script.create(params)
        cc.find("Canvas").addChild(node)
        cc.resources.release("dialog/commom/CommomDialog")
    })
}